package main

import (
	"fmt"
	"git.oschina.net/zsbfree/blog/controllers"
	"net/http"
)

func helloworld(w http.ResponseWriter, r *http.Request) {
	w.Write([]byte("hello world"))
}

func main() {
	http.HandleFunc("/", controllers.Index)
	err := http.ListenAndServe(":8080", http.HandlerFunc(controllers.Register))
	if err != nil {
		fmt.Println("start failed")
	}
	fmt.Println("start successful ,enjoy it")
}
